package com.elive.dao;

import com.elive.pojo.Apartment;

import java.util.List;

public interface ApartmentMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Apartment record);

    int insertSelective(Apartment record);

    Apartment selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Apartment record);

    int updateByPrimaryKey(Apartment record);

    List<Apartment> getApartmentListByHostId(Integer hostId);

    List<Apartment> getRecommentApartment();

    List<Apartment> getApartmentListByCityId(Integer cityId);
}